// Where the server?
var JABBERSERVER = "tdt-sean";


function setCookie(name, value, expires, path, domain, secure) { 
 document.cookie = name + "=" + escape(value) + 
   ((expires) ? "; expires=" + expires.toGMTString() : "") + 
   ((path) ? "; path=" + path : "") + 
   ((domain) ? "; domain=" + domain : "") + 
   ((secure) ? "; secure" : ""); 
} 

function getCookie(name) { 
 var cName = name + "="; 
 var dc = document.cookie; 
 if (dc.length>0) { 
   begin = dc.indexOf(cName); 
   if (begin != -1) { 
     begin += cName.length; 
     end = dc.indexOf(";", begin); 
     if (end == -1) end = dc.length; 
       return unescape(dc.substring(begin,end)); 
   } 
 } 
 return null; 
} 

